<?php

class Portal_Client {
    private $clientId;
    private $esId;
    public $result;

    public function __construct($clientId = 0, $esId = 0) {
        $this->clientId = $clientId;
        $this->esId = $esId;
    }

    public function save($obj) {
        $url = PORTAL_URL . '/User/changeClientData/' . $obj->clientId . '/' . $obj->esId;
        $this->result = file_get_contents($url);
        return $this->result == 1;
    }
}
